import { BaseEntity } from "src/baseEntity";
import { UserSys } from "src/user/userSys.entity";
import { Column, Entity, ManyToOne } from "typeorm";



@Entity("log")
export class Log extends BaseEntity {
    @ManyToOne(() => UserSys)
    user: UserSys

    @Column({ nullable: true })
    name: string

    @Column({ nullable: true })
    path: string

    @Column({ nullable: true })
    ip: string

    @Column({ nullable: true })
    method: string

    @Column()
    statusCode: number

    @Column({ type: "text", nullable: true })
    body: string

    @Column({ type: "longtext", nullable: true })
    data: string
}